package aiku.numericalcontroloa.common.annotation.aop;

import aiku.numericalcontroloa.common.base.PageData;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Slf4j
public class StartPageAspect {
//common.annotation.StartPage
    @Pointcut("@annotation(aiku.numericalcontroloa.common.annotation.StartPage)")
    public void PointCut() {
    }


    @Before(value = "PointCut()")
    public void StartPage(JoinPoint joinPoint) throws Throwable {
        PageData.startPage();
    }

}
